import request from "@/utils/request";

// 数据列表列表
export function apiZgDataLists(params: any) {
  return request.get({ url: "/statistics.zg_data/lists", params });
}

// 添加数据列表
export function apiZgDataAdd(params: any) {
  return request.post({ url: "/statistics.zg_data/add", params });
}

// 编辑数据列表
export function apiZgDataEdit(params: any) {
  return request.post({ url: "/statistics.zg_data/edit", params });
}

// 删除数据列表
export function apiZgDataDelete(params: any) {
  return request.post({ url: "/statistics.zg_data/delete", params });
}

// 数据列表详情
export function apiZgDataDetail(params: any) {
  return request.get({ url: "/statistics.zg_data/detail", params });
}

// 活动配置
export function apiZgDataConfigure(params: any) {
  return request.post({ url: "/statistics.zg_data/configure", params });
}

// 随机票数
export function apiZgDataRandom(params: any) {
  return request.post({ url: "/statistics.zg_data/random", params });
}

// 限制访问
export function apiZgDataRestrict(params: any) {
  return request.post({ url: "/statistics.zg_data/restrict", params });
}

//修改开关状态
export function apiZgDataStatus(params: any) {
  return request.post({ url: "/statistics.zg_data/status", params });
}

// 清除锁定
export function clear_lock(params: any) {
  return request.post({ url: "/statistics.zg_data/clear_lock ", params });
}
// 限制访问
// export function apiZgDataRestrict(params: any) {
//     return request.get({ url: '/statistics.zg_data/restrict', params })
// }
